<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>asdf</title>
		<meta http-equiv=Content-Type content="text/html;charset=utf-8">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/bootstrap/css/bootstrap.min.css" />
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/bootstrap/css/bootstrap-responsive.min.css" />
		<style type="text/css">
		dt span a{width:100px;float:left;font-weight: normal;}
		</style>
	</head>
	<body>
	
	<div class="container">
	<c:forEach items= "${catalogues}" var="catelogue">
	<dl>
	<dd><h4>${catelogue.name}</h4></dd>
	<dt class="clearfix">
		<c:forEach items= "${catelogue.books}" var="book">
		<span><a href="${pageContext.request.contextPath}/book/${book.name}">${book.name}</a> </span>
		</c:forEach>
	</dt>
	</dl>
	</c:forEach>
	</div>
	</body>
</html>
